package com.example.venadaoa.net;

import com.duowan.mobile.netroid.AuthFailureError;
import com.duowan.mobile.netroid.Listener;
import com.duowan.mobile.netroid.request.StringRequest;

import java.util.Map;

/**
 * Created by Dell on 2016/4/25.
 */
public class StringPostRequest extends StringRequest{

    private Map<String, String> params;

    public StringPostRequest(int method, String url, Map<String, String> params, Listener<String> listener) {
        super(method, url, listener);
        this.params =params;

    }

    public StringPostRequest(int method, String url, Listener<String> listener) {
        super(method, url, listener);
    }

    @Override
    public Map<String, String> getParams() throws AuthFailureError {
        return params;
    }


}
